package com.example.su_shi_tan_main

import com.alibaba.android.arouter.launcher.ARouter
import com.example.su_shi_tan_core.arouter.*
import com.example.su_shi_tan_core.extentions.castBaseFragmentEx
import com.example.su_shi_tan_main.bean.LabInfo

fun childPage() = arrayOf(
    LabInfo(
        ARouter.getInstance()
            .build(HomeARouter.Home_Fragment)
            .castBaseFragmentEx(),
        R.string.app_maim_first_page,
        R.drawable.ic_home,
        false,
        openPage = true
    ),
    LabInfo(
        ARouter.getInstance()
            .build(WalletARouter.WalletFragment)
            .castBaseFragmentEx(),
        R.string.app_maim_wallet,
        R.drawable.ic_wallet,
        true,
        openPage = false
    ),
    LabInfo(
        ARouter.getInstance()
            .build(TransitionARouter.TransitionFragment)
            .castBaseFragmentEx(),
        R.string.app_maim_transaction,
        R.drawable.ic_transaction,
        false,
        openPage = false
    ),
    LabInfo(
        ARouter.getInstance()
            .build(SSTIconARouter.SSTIconFragment)
            .castBaseFragmentEx(),
        R.string.app_maim_wallet_sst,
        R.mipmap.icon_sst_1,
        false,
        openPage = false
    ),

    LabInfo(
        ARouter.getInstance()
            .build(MineARouter.MineFragment)
            .castBaseFragmentEx(),
        R.string.app_maim_mine,
        R.drawable.ic_mine,
        true,
        openPage = true
    )
)